Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix requesting attesting blocks after equivalent proofs #6732

Merged

Conversation

AdoAdoAdo
Copy link
Contributor

@AdoAdoAdo AdoAdoAdo commented Jan 23, 2025

Reasoning behind the pull request

  • the request of missing attesting blocks needs to change when there are proofs for blocks

Proposed changes

  • depending on the last notarized shard block, decide if there is a need to request attesting blocks

Testing procedure

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

@@ -390,6 +390,25 @@ func (bp *baseProcessor) SetHighestHdrNonceForCurrentBlock(shardId uint32, value
bp.hdrsForCurrBlock.mutHdrsForBlock.Unlock()
}

type LastNotarizedHeaderInfo struct {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

HasProof bool
}

func (bp *baseProcessor) SetLastNotarizedHeaderForShard(shardId uint32, info *LastNotarizedHeaderInfo) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


func (bp *baseProcessor) SetLastNotarizedHeaderForShard(shardId uint32, info *LastNotarizedHeaderInfo) {
bp.hdrsForCurrBlock.mutHdrsForBlock.Lock()
lastNotarizedSharInfo := &lastNotarizedHeaderInfo{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
lastNotarizedSharInfo := &lastNotarizedHeaderInfo{
lastNotarizedShardInfo := &lastNotarizedHeaderInfo{

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@AdoAdoAdo AdoAdoAdo merged commit 4757ba0 into equivalent-proofs-stabilization-2 Jan 23, 2025
2 of 3 checks passed
@AdoAdoAdo AdoAdoAdo deleted the fix-requesting-attesting-blocks branch January 23, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants